package com.cy.mall.service.comm;

import com.cy.mall.model.Result;
import com.cy.mall.model.enums.IdCardType;

import java.util.Map;

/**
 * @Description 身份证ocr识别 service
 * @Author tanyilin
 * @Date 2019/6/16 15:01
 */
public interface OcrIdCardService {

    /**
     * 身份证ocr识别
     * @param image 图片二进制数据的base64编码/图片url
     * @param idCardType 身份证正反面类型:face/back
     * @return com.cy.mall.model.Result<java.util.Map<java.lang.String,java.lang.Object>>
     */
    Result<Map<String, Object>> doOcrIdCard(String image, IdCardType idCardType);
}
